﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BooksOnline.Serivces
{
    public class ModelFactory
    {
        private static BooksOnlineModelContainer booksModel;

        private ModelFactory()
        {
                
        }

        public static BooksOnlineModelContainer GetBooksModel()
        {
            if(booksModel == null)
            {
                booksModel = new BooksOnlineModelContainer();
            }
            return booksModel;
        }
    }
}